/*
 * File:        serverInfo.h
 * Authors:     Jonathan Kotker (ee122-bw) and Shaan Mulchandani (ee122-bv)
 * Description: This header file specifies a node of a list of
 *              information of servers being tracked.
 */

#ifndef _SERVERINFO_H
#define	_SERVERINFO_H

#include "constants.h"

struct serverInfo {

    /* IP address of the server. */
    char serverIpAddress[MAX_IP_ADDRESS_LEN];

    /* TCP port on the server. */
    int serverTcpPort;

    /* UDP port on the server. */
    int serverUdpPort;

    /* Bounds on `x' for the server. */
    int minX, maxX;
    
    /* Pointer to the next node in the server info list. */
    struct serverInfo* next;

    /* Pointer to the previous node in the server info list. */
    struct serverInfo* prev;

};

typedef struct serverInfo serverInfo;

#endif	/* _SERVERINFO_H */

